package com.atguigu.mybatisplus_01.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
public enum SexEnum {
    MALE(1,"男"),
    FEMALE(0,"女");
    @EnumValue//在枚举类型中要填入数据库的属性上面标注此注解
    private Integer sex;
    private String sexName;
}
